@ECHO OFF
SETLOCAL EnableDelayedExpansion

SET CLASSPATH=.
FOR /r ./lib %%J IN (*.jar) DO (
	SET CLASSPATH=%%~fJ;!CLASSPATH!
)

REM SET DEBUG
REM SET DEBUG=-DPPR.DEBUG=TRUE

SET MAINCLASS=com.easymap.cms.build.ppr.PprBuilderTools

SET CONFIG_JLS=./config/PPR_JLS_Config.ini
JAVA -Xms200m -Xmx900m -cp %CLASSPATH% %DEBUG% %MAINCLASS% %CONFIG_JLS%

SET CONFIG_KSS=./config/PPR_KSS_Config.ini
JAVA -Xms200m -Xmx900m -cp %CLASSPATH% %DEBUG% %MAINCLASS% %CONFIG_KSS%

SET CONFIG_LG=./config/PPR_LG_Config.ini
JAVA -Xms200m -Xmx900m -cp %CLASSPATH% %DEBUG% %MAINCLASS% %CONFIG_LG%

SET CONFIG_LGEx=./config/PPR_LGEx_Config.ini
JAVA -Xms200m -Xmx900m -cp %CLASSPATH% %DEBUG% %MAINCLASS% %CONFIG_LGEx%

SET CONFIG_SJS=./config/PPR_SJS_Config.ini
JAVA -Xms200m -Xmx900m -cp %CLASSPATH% %DEBUG% %MAINCLASS% %CONFIG_SJS%

SET CONFIG_WB=./config/PPR_WB_Config.ini
JAVA -Xms200m -Xmx900m -cp %CLASSPATH% %DEBUG% %MAINCLASS% %CONFIG_WB%

pause
